package cn.webrx;

import java.io.File;
import java.io.FileOutputStream;

public class Ex1 {
    public static void main(String[] args) throws Exception{
        File f = new File("a.txt");
        System.out.println(f.createNewFile());
        System.out.println(f.createNewFile());
        System.out.println(f.exists());
        System.out.println(f.delete());

        FileOutputStream fos = new FileOutputStream("b.txt");
        fos.write("242".getBytes());
        fos.close();

        File ff = new File("b.txt");

        System.out.println(ff.delete());
    }
}
